package com.dbz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sale")
public class Sale {
    @TableId(type = IdType.AUTO)
    private String said;//销售编号
    @TableField(value = "wid")
    private String wid;//货号
    @TableField(value = "bid")
    private String bid;//商家id
    @TableField(value = "sprice")
    private Double sprice;//单价
    @TableField(value = "snumber")
    private Integer snumber;//销售数量
    @TableField(value = "smoney")
    private Double smoney;//销售金额
    @TableField(value = "stime")
    private Date stime;//销售时间
}
